connect

fun connect(url: String, code: String? = null, opening: (Link) -> Unit = {}): Promise<Unit>

Opens a link to the site listening at url (ws://host:port): code presented if given (see Site.requiresCode), and the link given to opening before it opens